package com.language.data_procress.language;

import org.json.JSONObject;

import com.webservice.webservice_line;

public class data_procress_update_language extends languages {

	public String update_Langueages(languages language, String newEng,
			String newTur) {
		String path = super.getLanguagePATH() + "updateLanguage/"
				+ language.getEnglish() + "/" + language.getTurkish() + "/"
				+ newEng + "/" + newTur;
		JSONObject jo = new webservice_line().startService_ReturnJSON(path);
		try {
			return jo.toString();
		} catch (Exception e) {
			return jo.toString() + ", " + e.getMessage();
		}
	}
}